package cn.ichiva.web;

import cn.ichiva.web.component.Browser;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        FXMLLoader loader = new FXMLLoader(Main.class.getResource("/Browser.fxml"));
        Parent load = loader.load();
        Browser browser = loader.getController();

        primaryStage.setScene(new Scene(load));
        primaryStage.setMaximized(true);
        primaryStage.show();

        browser.open("https://cn.bing.com");
    }
}
